package org.shiwen.week2;

import java.util.Scanner;
//Java的输入
public class SystemIn {
    public static void main(String[] args) {
        System.out.println("请输入：");
        Scanner sc = new Scanner(System.in);
        // nextInt()会将用户输入的值以int的格式赋值给变量
        int a = sc.nextInt();
        System.out.println(a);
        // next()会将用户输入的值以String的格式赋值给变量
        String b = sc.next();
        System.out.println(b);
        // nextDouble()会将用户输入的值以double的格式赋值给变量
        double c = sc.nextDouble();
        System.out.println(c);

    }
}
